﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WebForms/Site.Master" AutoEventWireup="true" CodeBehind="CheckOutManagement.aspx.cs" Inherits="DelonixRegiaHMSys.UI.WebForms.CheckOutManagement" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style9 {
            color: #FFFFFF;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <div id="wrapper">
        <div id="content">
            <div style="width: 100%">
                <div style="width: 50%; float: left">
                    <strong>Checkout ID: </strong>
                    <asp:Label runat="server" ID="lblCheckOutID"></asp:Label>
                    <br />
                    <br />
                    <strong>Invoice ID: </strong>
                    <asp:Label runat="server" ID="lblInvoiceID"></asp:Label>
                    <br />
                    <strong>Room Number: </strong>
                    <asp:Label runat="server" ID="lblRoomNum"></asp:Label>
                    <br />
                    <strong>Room Rates: </strong>
                    <asp:Label runat="server" ID="lblRoomRates"></asp:Label>
                    / Nights
                    <br />
                    <strong>Guest ID: </strong>
                    <asp:Label runat="server" ID="lblGuestID"></asp:Label>
                    <strong>
                        <br />
                        Guest Name: </strong>
                    <asp:Label runat="server" ID="lblGuestFN"></asp:Label>&nbsp;<asp:Label runat="server" ID="lblGuestLN"></asp:Label>
                </div>
                <div style="width: 50%; float: right">
                    <strong>
                        <br />
                        <br />
                        <br />
                        Check In Date Time: </strong>
                    <asp:Label runat="server" ID="lblCheckInDateTime"></asp:Label>
                    <br />
                    <strong>Check Out Date Time: </strong>
                    <asp:Label runat="server" ID="lblCheckOutDateTime"></asp:Label>
                    <br />
                    <strong>Number Of Nights Stayed: </strong>
                    <asp:Label runat="server" ID="lblnumOfNightsStayed"></asp:Label>
                    <br />
                    <strong>Payment Mode: </strong>
                    <asp:Label runat="server" ID="lblPM"></asp:Label>
                </div>
                <br />
            </div>
            <br />
            <hr />
            <br />
            <table>
                <tr>
                    <td><strong>Item Name: </strong></td>
                    <td>
                        <asp:TextBox runat="server" ID="itmNametbx" /></td>
                </tr>
                <tr>
                    <td><strong>Description: </strong></td>
                    <td>
                        <asp:TextBox runat="server" ID="desctbx" /></td>
                </tr>
                <tr>
                    <td><strong>Cost: </strong></td>
                    <td>
                        <asp:TextBox runat="server" ID="costtbx" /></td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align: center">
                        <asp:Button runat="server" ID="additembtn" Text="Add Item" OnClick="additembtn_Click" /></td>
                </tr>
            </table>


            <br />
            <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <asp:GridView runat="server" ID="GridViewItems" AutoGenerateColumns="false" Style="text-align: center">
                        <EmptyDataTemplate>
                            Add Item to the list if there is any additional cost!
                        </EmptyDataTemplate>
                        <Columns>
                            <asp:BoundField HeaderText="Item Name" DataField="ItemName" />
                            <asp:BoundField HeaderText="Description" DataField="Description" />
                            <asp:BoundField HeaderText="Cost" DataField="Cost" />
                        </Columns>
                    </asp:GridView>
                </ContentTemplate>
            </asp:UpdatePanel>


            <br />

        </div>
        <div id="left">
            <h3>Welcome to the CheckOut Section</h3>
            <p class="auto-style9">Please check if the data is correct and add item if there is any additional cost!</p>
            <p></p>
            <p></p>
            <p></p>
            <p></p>
            <p><asp:Button ID="Invoicebtn" runat="server" Height="35px" Text="Generate Invoice." Width="122px" OnClick="Invoicebtn_Click" />
            </p>
        </div>
        <div class="clear"></div>
    </div>
</asp:Content>
